package com.winbomb.simulife.impl;

import com.winbomb.simulife.Master;
import com.winbomb.simulife.World;
import com.winbomb.simulife.base.IOperation;
import com.winbomb.simulife.framework.Pixmap;

public abstract class BaseOperation implements IOperation {

	protected World world;
	protected Master master;

	/** 操作名称 */
	String optName;
	/** 操作图标文件名称 */
	String iconName;
	/** 操作动画文件名称 */
	String animName;
	/** 操作耗时 */
	int optCost;

	public BaseOperation(World world) {
		this.world = world;
		this.master = world.getMaster();
	}

	@Override
	public Pixmap getIcon() {
		return null;
	}

	@Override
	public String getName() {
		return optName;
	}

	@Override
	public int getTimeCost() {
		return optCost;
	}

	@Override
	public Pixmap getAnimation() {
		return null;
	}

}
